package com.smartthinking.destinomusical.obj;

import android.os.Parcel;
import android.os.Parcelable;

public class Cancion implements Parcelable {
	int id;
	String nombre;
	String urlId;
	String costo;
	String costo_desc;
	String artista;
	String codigo;
	String year;
	String comprado;
	String total;
	
	public Cancion(){}
	
	public Cancion(Parcel source){
		id = source.readInt();
		nombre = source.readString();
		urlId = source.readString();
		costo = source.readString();
		costo_desc = source.readString();
		artista = source.readString();
		codigo = source.readString();
		year = source.readString();
		comprado = source.readString();
		total = source.readString();
	}
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public String getUrlId() {
		return urlId;
	}

	public void setUrlId(String urlId) {
		this.urlId = urlId;
	}

	public String getCosto() {
		return costo;
	}

	public void setCosto(String costo) {
		this.costo = costo;
	}

	public String getCosto_desc() {
		return costo_desc;
	}

	public void setCosto_desc(String costo_desc) {
		this.costo_desc = costo_desc;
	}

	public String getArtista() {
		return artista;
	}

	public void setArtista(String artista) {
		this.artista = artista;
	}

	public String getCodigo() {
		return codigo;
	}

	public void setCodigo(String codigo) {
		this.codigo = codigo;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getComprado() {
		return comprado;
	}

	public void setComprado(String comprado) {
		this.comprado = comprado;
	}

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeString(nombre);
		dest.writeString(urlId);
		dest.writeString(costo);
		dest.writeString(costo_desc);
		dest.writeString(artista);
		dest.writeString(codigo);
		dest.writeString(year);
		dest.writeString(comprado);
		dest.writeString(total);
		
	}
	
	@SuppressWarnings("rawtypes")
	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {

		public Cancion createFromParcel(Parcel source) {
			return new Cancion(source);
		}

		public Cancion[] newArray(int size) {
			return new Cancion[size];
		}
	};

}
